Skip to content

Remove Direct GT4Py Imports#114

Merged
fmalatino merged 12 commits intoNOAA-GFDL:developfrom
CharlesKrop:unified_import
May 22, 2025
Merged

Remove Direct GT4Py Imports#114
fmalatino merged 12 commits intoNOAA-GFDL:developfrom
CharlesKrop:unified_import

Conversation

@CharlesKrop
Copy link
Copy Markdown
Collaborator

All references to GT4Py have been removed and replaced with imports from NDSL, bringing this repository in compliance with the changes made to NDSL here.

All future references to GT4Py tools should be references via ndsl.dsl.gt4py instead of gt4py.cartesian.gtscript.

@CharlesKrop
Copy link
Copy Markdown
Collaborator Author

@FlorianDeconinck

@fmalatino fmalatino requested review from fmalatino and oelbert May 1, 2025 16:29
@fmalatino
Copy link
Copy Markdown
Contributor

Hi @CharlesKrop please update this branch to contain the commits from 117

Copy link
Copy Markdown
Collaborator

@oelbert oelbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for the most part, except I'd rather we used import ndsl.dsl.gt4py as gt or some other name so it's clear where the decorators and I, J, K notation are coming from

@CharlesKrop CharlesKrop requested a review from oelbert May 13, 2025 14:56
oelbert
oelbert previously approved these changes May 13, 2025
Copy link
Copy Markdown
Collaborator

@oelbert oelbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

fmalatino
fmalatino previously approved these changes May 14, 2025
@CharlesKrop CharlesKrop dismissed stale reviews from fmalatino and oelbert via 126ab3f May 14, 2025 15:09
@CharlesKrop CharlesKrop mentioned this pull request May 14, 2025
@FlorianDeconinck
Copy link
Copy Markdown
Collaborator

The PR needed has been merged go ahead and re-merge with develop again

### GT4Py stencils

We interface to `gt4py.cartesian.gtscript.stencil` through ndsl.dsl.stencil, specifically the FrozenStencil, that allows us to minimize runtime overhead in calling stencils.
We interface to `ndsl.dsl.gt4py.stencil` through ndsl.dsl.stencil, specifically the FrozenStencil, that allows us to minimize runtime overhead in calling stencils.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're changing this line maybe we could say "we interface to gt4py.cartesian stencils" since this redundancy seems a bit awkward

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Copy Markdown
Collaborator

@FlorianDeconinck FlorianDeconinck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix CONTRIBUTING.md then we are ready for show

@romanc
Copy link
Copy Markdown
Collaborator

romanc commented May 20, 2025

Speaking of contributing, @CharlesKrop, if you want, you can add your name to the list of contributors in CONTRIBUTORS.md

oelbert
oelbert previously approved these changes May 20, 2025
Copy link
Copy Markdown
Collaborator

@oelbert oelbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fmalatino fmalatino merged commit c917c38 into NOAA-GFDL:develop May 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants